package Library;

import java.awt.event.*;

/**
 *
 */
public class WaitableObjectEvent extends ActionEvent
{
    /**
     *
     * @param id
     * @param command
     * @param timeleft
     * @param totaltime
     */
    public WaitableObjectEvent(int id, String command, int timeleft, int totaltime)
    {
	super(new Object(), id, command);
	m_TimeLeft = timeleft;
	m_TotalTime = totaltime;
    }
    
    /**
     *
     * @param id
     * @param command
     * @param modifiers
     * @param timeleft
     * @param totaltime
     */
    public WaitableObjectEvent(int id, String command, int modifiers, int timeleft, int totaltime)
    {
	super(new Object(), id, command, modifiers);
	m_TimeLeft = timeleft;
	m_TotalTime = totaltime;
    }
    
    /**
     *
     * @param id
     * @param command
     * @param when
     * @param modifiers
     * @param timeleft
     * @param totaltime
     */
    public WaitableObjectEvent(int id, String command, long when, int modifiers, int timeleft, int totaltime)
    {
	super(new Object(), id, command, when, modifiers);
	m_TimeLeft = timeleft;
	m_TotalTime = totaltime;
    }
    
    /**
     *
     */
    protected int m_TimeLeft;
    /**
     *
     * @return
     */
    public int getTimeLeft()
    {
	return m_TimeLeft;
    }
    
    /**
     * 
     */
    protected int m_TotalTime;
    /**
     *
     * @return
     */
    public int getTotalTime()
    {
	return m_TotalTime;
    }
}
